package com.amikomgamedev.labirinhantu;

import java.util.ArrayList;

public class Server_Data
{
    private static boolean	    m_Sound_Enable = true;
    private static int		m_Srage	= 1;
    private static int		m_Map	  = 0;
    private static int 		m_Jml_Tulang	= 0;

    private static ArrayList<Integer> lst_Tulang_0   = new ArrayList<Integer>();
    private static ArrayList<Integer> lst_Tulang_1   = new ArrayList<Integer>();
    private static ArrayList<Integer> lst_Tulang_2   = new ArrayList<Integer>();

    private static int		koin	   = -2;
    private static int		front	  = -2;
    private static int		back	   = -2;
    private static int		right	  = -2;
    private static int		left	   = -2;

    public static boolean isSoundEnable()
    {
	return m_Sound_Enable;
    }

    public static void setSoundEnable(boolean p_Sound_Enable)
    {
	m_Sound_Enable = p_Sound_Enable;
    }

    public static int getStage()
    {
	return m_Srage;
    }

    public static void setStage(int p_Stage)
    {
	m_Srage = p_Stage;
    }

    public static int getJmlTulang()
    {
        return m_Jml_Tulang;
    }

    public static void setJmlTulang(int m_Jml_Tulang)
    {
        Server_Data.m_Jml_Tulang = m_Jml_Tulang;
    }

//    public static int getTulang(int stage, int map)
//    {
//	if (stage == 0)
//	    if (lst_Tulang_0.size() <= map)
//		return 0;
//	    else
//		return lst_Tulang_0.get(map);
//	else if (stage == 1)
//	    if (lst_Tulang_1.size() <= map)
//		return 0;
//	    else
//		return lst_Tulang_1.get(map);
//	else if (lst_Tulang_2.size() <= map)
//	    return 0;
//	else
//	    return lst_Tulang_2.get(map);
//    }
//
//    public static void setTulang(int stage, int map, int tulang)
//    {
//	if (stage == 0)
//	    if (lst_Tulang_0.size() > map)
//		lst_Tulang_0.set(map, tulang);
//	    else
//		lst_Tulang_0.add(tulang);
//	else if (stage == 1)
//	    if (lst_Tulang_1.size() > map)
//		lst_Tulang_1.set(map, tulang);
//	    else
//		lst_Tulang_1.add(tulang);
//	else if (stage == 2)
//	    if (lst_Tulang_2.size() > map)
//		lst_Tulang_2.set(map, tulang);
//	    else
//		lst_Tulang_2.add(tulang);
//    }

    public static int getKoin()
    {
	return koin;
    }

    public static void setKoin(int koin)
    {
	Server_Data.koin = koin;
    }

    public static int getFront()
    {
	return front;
    }

    public static void setFront(int front)
    {
	Server_Data.front = front;
    }

    public static int getBack()
    {
	return back;
    }

    public static void setBack(int back)
    {
	Server_Data.back = back;
    }

    public static int getRight()
    {
	return right;
    }

    public static void setRight(int right)
    {
	Server_Data.right = right;
    }

    public static int getLeft()
    {
	return left;
    }

    public static void setLeft(int left)
    {
	Server_Data.left = left;
    }

    public static int getMap()
    {
	return m_Map;
    }

    public static void setMap(int m_Map)
    {
	Server_Data.m_Map = m_Map;
    }

    public static void resetRules()
    {
	koin = -2;
	front = -2;
	back = -2;
	right = -2;
	left = -2;
    }
}
